<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<script type="text/javascript">
  var a="*";
  var i=1;
  var j=1;
  document.write("<p align='center'>");
    for(i=1;i<=5;i++){
  	for(j=1;j<=i;j++){
        document.write( a + "<span>&nbsp</span>");
  	}
  	    document.write("<br/>");
  }
  document.write("</p>");
</script>
	
</body>
</html>